package com.zb.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * @Author WEN
 * @Date 2023/10/18 0018
 **/
@Data
@ApiModel("服务商服务区域对象")
public class NetworkServiceAreaVo {
    @ApiModelProperty(value = "服务区域ID，新增不必传，修改必传")
    private Long id;

    @Length(max = 50, message = "服务区域省长度限制 50 个字符")
    @ApiModelProperty(value = "省")
    private String province;

    @Length(max = 50, message = "服务区域市长度限制 50 个字符")
    @ApiModelProperty(value = "市")
    private String city;

    @Length(max = 50, message = "服务区域县/区长度限制 50 个字符")
    @ApiModelProperty(value = "县/区")
    private String area;

    @Length(max = 50, message = "服务区域镇长度限制 50 个字符")
    @ApiModelProperty(value = "镇")
    private String town;

    public NetworkServiceAreaVo() {
    }

    public NetworkServiceAreaVo(Long id, String province, String city, String area, String town) {
        this.id = id;
        this.province = province;
        this.city = city;
        this.area = area;
        this.town = town;
    }

    public NetworkServiceAreaVo(String province, String city, String area, String town) {
        this.province = province;
        this.city = city;
        this.area = area;
        this.town = town;
    }


}
